using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace Game.UI {
	public sealed class UIClickInterceptor : MonoBehaviour, IPointerDownHandler {
		public UnityEvent OnClick = new UnityEvent();

		public void OnPointerClick(PointerEventData eventData) {
			OnClick.Invoke();
		}

		public void OnPointerDown(PointerEventData eventData) {
			OnClick.Invoke();
		}
	}
}
